package com.view;

import com.base.recycleView.ViewModel.BaseRecycleViewModle;
import com.modules.bean.User;
import com.view.SimpleAdapter;

import javax.inject.Inject;

import rx.Observable;

/**
 * Created by gaoml on 2017/8/28.
 */

public class MainViewModel extends BaseRecycleViewModle<User,SimpleAdapter>{

    @Inject  //1 构造函数 提供支援 提供对象     2.注入构造器所需要的参数的依赖 （ 注入传递）
    public MainViewModel(SimpleAdapter userSimpleAdapter) {
        super(userSimpleAdapter);
    }

    @Override
    public Observable getDataURL() {
        return apiStores.findall();
    }
}
